# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=ciwiki
pkgver=2.0.8
pkgrel=2
pkgdesc="personal lightweight wiki written in C"
url="https://ciwiki.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later"
options="!check"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/project/ciwiki/ciwiki-$pkgver.tar.gz
	gcc-10.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--libexecdir=/usr/lib/ciwiki
	make
}

package() {
	make install DESTDIR="$pkgdir"

}

sha512sums="
0686f01837add6d88f21e4f8f81e719515909515274ca7a91032eeaf3cf06b43a0cac6aaff69e088032652646b3602be1f970145a76fb96e05a9fe6fc7b1757d  ciwiki-2.0.8.tar.gz
c023a1e94e5a69c42640b9b0f3cf9ded4201f8116eb815c73cdd93718abe75d5d1e5d8875112acb8fc789664f6fdbcdedd054525185d983c5fec0d34bb0fe3d3  gcc-10.patch
"
